layui.use(['laypage', 'layer'], function () {
    var laypage = layui.laypage, layer = layui.layer;

    laypage({
        cont: 'fullpage',
        pages: $('#pageCount').val(), //分页总数
        skip: true,
        curr: $('#pageIndex').val(),
        jump: function (obj, first) {
            if (first != true) {//是否首次进入页面
                var pageIndex = obj.curr;//获取点击的页码
                window.location.href = "/front/index/showindex?pageIndex=" + pageIndex;
            }
        }
    });
});

